/**
 * SEVAS - Swiss Electronic Vaccination Advisor Service / Agile Development
 *
 * $Id: Vaccination.java 29 2010-08-18 16:51:14Z zimmr7@bfh.ch $
 */
package ch.bfh.sevas;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Embeddable;

@Embeddable
public class Vaccination implements Serializable {

    private String physician;
    private String against;
    private String vaccine;
    private String manufacturer;
    private String batchNo;
    private String medication;
    private Date done;

    public Vaccination() {
    }

    public Vaccination(String against, String vaccine, String manufacturer, String batchNo, String dose, Date done, String physician) {
        this();

        this.physician = physician;
        this.against = against;
        this.vaccine = vaccine;
        this.manufacturer = manufacturer;
        this.batchNo = batchNo;
        this.medication = dose;
        this.done = done;
    }

    public String getAgainst() {
        return against;
    }

    public void setAgainst(String against) {
        this.against = against;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public Date getDone() {
        return done;
    }

    public void setDone(Date done) {
        this.done = done;
    }

    public String getMedication() {
        return medication;
    }

    public void setMedication(String medication) {
        this.medication = medication;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getPhysician() {
        return physician;
    }

    public void setPhysician(String physician) {
        this.physician = physician;
    }

    public String getVaccine() {
        return vaccine;
    }

    public void setVaccine(String vaccine) {
        this.vaccine = vaccine;
    }

    @Override
    public String toString() {
        return "Vaccination(" + against + ", " + vaccine + ", " + manufacturer + ", " + batchNo + ", " + medication + ", " + new DateConverter().convertForward(done) + ", " + physician + ")";
    }
    
}